import request from '@/utils/request'
import { base_url } from '@/api/config'

export function getAlarmList() {
  return request({
    url: base_url + '/alarm/list',
    method: 'get'
  })
}

export function addAlarm(data) {
  return request({
    url: base_url + '/alarm/add',
    method: 'post',
    data
  })
}

export function delAlarm(data) {
  return request({
    url: base_url + '/alarm/delete',
    method: 'post',
    data
  })
}

export function updateAlarm(data) {
  return request({
    url: base_url + '/alarm/update',
    method: 'post',
    data
  })
}

export function getAlarmLog(data) {
  return request({
    url: base_url + '/alarm/log',
    method: 'post',
    data
  })
}
